package com.hzsoft.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hzsoft.sys.entity.SysUserCategory;
import com.hzsoft.sys.mapper.SysUserCategoryMapper;
import com.hzsoft.sys.service.SysUserCategoryService;
@Transactional
@Service("sysUserCategoryService")
public class SysUserCategoryServiceImpl implements SysUserCategoryService {
	
	private SysUserCategoryMapper sysUserCategoryMapper;
	
	public SysUserCategoryMapper getSysUserCategoryMapper() {
		return sysUserCategoryMapper;
	}
	@Autowired
	public void setSysUserCategoryMapper(SysUserCategoryMapper sysUserCategoryMapper) {
		this.sysUserCategoryMapper = sysUserCategoryMapper;
	}

	public int deleteByPrimaryKey(String categoryId) {
		// TODO Auto-generated method stub
		return sysUserCategoryMapper.deleteByPrimaryKey(categoryId);
	}

	public int insert(SysUserCategory record) {
		// TODO Auto-generated method stub
		return sysUserCategoryMapper.insert(record);
	}

	public int insertSelective(SysUserCategory record) {
		// TODO Auto-generated method stub
		return sysUserCategoryMapper.insertSelective(record);
	}

	public SysUserCategory selectByPrimaryKey(String categoryId) {
		// TODO Auto-generated method stub
		return sysUserCategoryMapper.selectByPrimaryKey(categoryId);
	}

	public int updateByPrimaryKeySelective(SysUserCategory record) {
		// TODO Auto-generated method stub
		return sysUserCategoryMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(SysUserCategory record) {
		// TODO Auto-generated method stub
		return sysUserCategoryMapper.updateByPrimaryKey(record);
	}

}
